package com.sunday.boot3.user.center.rest.vo.permissions;

import io.swagger.v3.oas.annotations.media.Schema;
import com.sunday.common.core.gson.GsonUtils;
import com.sunday.common.core.remoting.base.auth.BaseDTO;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description: 权限表 请求 VO
 * @author: zsy
 * @Create: 2024/09/23 10:06:39
 */
@Data
@Schema(description = "UpdatePermissionsReqVO 对象")
public class UpdatePermissionsReqVO extends BaseDTO {

    @Schema(description = "主键", required = true)
    private Long id;

    @Schema(description = "名称", required = true)
    private String name;

    @Schema(description = "类别: 10. 后台权限(web 访问数据) 20. 路由权限(route permissions) 21. 页面权限(fine grit permissions) 30. 接口权限(api 能力权限)", required = true)
    private Integer category;

    @Schema(description = "路径", required = true)
    private String url;

    @Schema(description = "权限位", required = true)
    private Integer position;

    @Schema(description = "权限码", required = true)
    private Long code;

    @Schema(description = "父级ID", required = true)
    private Long parentId;


    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
